//package com.example.springboottest.student.service.impl;
//
//import com.example.springboottest.student.dao.StuMongoJpaDao;
//import com.example.springboottest.student.dao.StuReactiveMongoRepository;
//import com.example.springboottest.student.model.Student;
//import com.example.springboottest.student.service.StuFluxService;
//import com.example.springboottest.student.service.StuMogonService;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.data.domain.Page;
//import org.springframework.data.domain.Sort;
//import org.springframework.data.mongodb.core.MongoTemplate;
//import org.springframework.data.mongodb.core.query.Criteria;
//import org.springframework.data.mongodb.core.query.Query;
//import org.springframework.stereotype.Service;
//import org.springframework.transaction.annotation.Transactional;
//import reactor.core.publisher.Flux;
//import reactor.core.publisher.Mono;
//
//import java.util.List;
//
///**
// *
// */
//@Service("stuFluxService")
//public class StuFluxServiceImpl implements StuFluxService {
//    @Autowired
//    private StuReactiveMongoRepository stuReactiveMongoRepository;
//
//    @Override
//    public Flux<Student> doFindALl() {
//        Sort sort = Sort.by(Sort.Direction.DESC, "id");
//        return stuReactiveMongoRepository.findAll(sort);
//    }
//
//    @Override
//    public Mono<Void> doDeleteById(String id) {
//        Mono<Void> result = stuReactiveMongoRepository.deleteById(id);
//        return result;
//    }
//
//    @Override
//    public Mono<Student> doCreate(Student student) {
//        return stuReactiveMongoRepository.save(student);
//    }
//
//    @Override
//    public Mono<Student> doUpdate(Student student) {
//        return stuReactiveMongoRepository.save(student);
//    }
//
//    @Override
//    public Mono<Student> idoUpdate(Student student) {
//        return stuReactiveMongoRepository.save(student);
//    }
//
//    @Override
//    public Mono<Student> doFindById(String id) {
//        return stuReactiveMongoRepository.findById(id);
//    }
//}